﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SnelsteRoute
{
    public class Configuration
    {
        public String Description { get; set; }
        public List<Aspect> Aspects { get; set; }

        internal void ResolveRelations()
        {
            foreach (var aspect in Aspects)
                aspect.ResolveRelations( this);

            foreach (var aspect in Aspects)
                aspect.ResolveParentRelations(this);

            Aspects = Aspects.OrderBy(a => a.Name).ToList();
        }
    }
}
